<!--
  * 时间：2025/1/14
  * 作者：刘岩
  * 描述：报警系统 - 设备监测
-->
<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="用户管理" name="first">
        <div class="btns">
          <el-button class="btn" type="primary">布防</el-button>
          <el-button class="btn" type="primary">撤防</el-button>
        </div>
        <div class="device-box">
          <device-box
            v-for="(item, index) in deviceList"
            :data="item"
            :key="index"
          ></device-box>
        </div>
      </el-tab-pane>
      <el-tab-pane label="配置管理" name="second"></el-tab-pane>
      <el-tab-pane label="角色管理" name="third"></el-tab-pane>
      <el-tab-pane label="定时任务补偿" name="fourth"></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import DeviceBox from '@/views/alarmSystem/deviceMonitor/components/deviceBox';
export default {
  name: 'DeviceMonitor',
  components: {
    DeviceBox
  },
  data() {
    return {
      activeName: 'first',
      deviceList: [
        {
          name: '',
          f1: '',
          f2: '',
          f3: '',
          f4: '',
          f5: '',
          f6: '',
          f7: ''
        },
        {
          name: '',
          f1: '',
          f2: '',
          f3: '',
          f4: '',
          f5: '',
          f6: '',
          f7: ''
        }
      ]
    }
  },
  methods: {
    /**
     * 时间：2025/1/14
     * 作者：刘岩
     * 功能：tab页切换
     */
    handleClick(val) {
      //
    }
  }
}
</script>

<style scoped lang="scss">
.device-box {
  margin-top: 15px;
  display: flex;
}
</style>
